package com.company;

import java.io.*;

/**
 * Created by asus on 2017/8/25.
 */
public class FormattedMemoryInput {
    public static void main (String[] args) throws IOException{
        try{
            DataInputStream in = new DataInputStream(new ByteArrayInputStream(BufferedInputFile.read("D:\\test.txt").getBytes()));
            while(true)
                System.out.println((char)in.readByte());
        }catch (EOFException e){
            System.err.println("End of stream");
        }
    }
}
